package com.hippo.core.pojo.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * warn_rule_detail
 * @author 
 */
@Data
@Schema(name = "RuleWarnDetail", description = "预警规则详情")
@TableName(value = "warn_rule_detail")
public class RuleWarnDetail implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id",type = IdType.AUTO)
    @Schema(name = "id", description = "主键ID")
    private Integer id;

    /**
     * 预警规则ID
     */
    @Schema(name = "warnRuleId", description = "预警规则ID")
    @TableField(value = "warn_rule_id")
    private Integer warnRuleId;

    /**
     * 预警指标
     */
    @Schema(name = "warnIndex", description = "预警指标")
    @TableField(value = "warn_index")
    private String warnIndex;

    /**
     * 预警指标名称
     */
    @Schema(name = "warnIndexName", description = "预警指标名称")
    @TableField(value = "warn_index_name")
    private String warnIndexName;

    /**
     * 阈值
     */
    @Schema(name = "value", description = "阈值")
    @TableField(value = "value")
    private String value;

    /**
     * 对比阈值方式
(1:大于 2：小于
3：等于 4：大于等于
5：小于等于 6：不等于)
     */
    @Schema(name = "compareType", description = "对比阈值方式(1:大于 2：小于 3：等于 4：大于等于 5：小于等于 6：不等于)")
    @TableField(value = "compare_type")
    private Short type;

    /**
     * 状态（0:无效 1：有效）
     */
    @Schema(name = "status", description = "状态（0:无效 1：有效）")
    @TableField(value = "status")
    private Short status;

    private static final long serialVersionUID = 1L;
}